import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/SIM/list',
    method: 'get',
    params: { query }
  })
}

export function createSIM(data) {
  return request({
    url: '/SIM/create',
    method: 'post',
    data
  })
}

export function updateSIM(data) {
  return request({
    url: '/SIM/update',
    method: 'post',
    data
  })
}
export function deleteSIM(id) {
  return request({
    url: '/SIM/delete',
    method: 'post',
    params: { id }
  })
}
export function fetchOptions() {
  return request({
    url: '/SIM/options',
    method: 'post'
  })
}
